//
//  HJEditGroupInfoController.m
//  KaiChat
//
//  Created by lx on 2023/11/7.
//

#import "HJEditGroupInfoController.h"
#import "QMUITextView.h"
#import "QMUITextField.h"

@interface HJEditGroupInfoController ()

@end

@implementation HJEditGroupInfoController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationBar.title = @"Edit Group Information";
    self.navigationBar.lineView.hidden = YES;
 
    UIImageView *avatarImageView = [UIImageView addToView:self.view];
    avatarImageView.addCornerRadius(40);
    [avatarImageView tj_setImageWithUrl:self.groupModel.avatar placeholderImage:[UIImage imageNamed:defaultAvatarName]];
    [avatarImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.offset(20 + KNavBarHight);
        make.width.height.offset(80);
        make.centerX.offset(0);
    }];
    
    UIButton *editButton = [UIButton addToView:self.view];
    [editButton setImage:[UIImage imageNamed:@"takePhoto"] forState:UIControlStateNormal];
    [editButton setImage:[UIImage imageNamed:@"takePhoto"] forState:UIControlStateHighlighted];
    [editButton addTarget:self action:@selector(didClickEditButton) forControlEvents:UIControlEventTouchUpInside];
    [editButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(avatarImageView);
        make.bottom.equalTo(avatarImageView);
        make.width.height.offset(30);
    }];
    
    UILabel *nameLabel = [UILabel lableWithSuperView:self.view font:UIFontMediumMake(14) color:UIColor.tj_333333Color title:@"Group Name" textAlignment:NSTextAlignmentLeft];
    [nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(leftRightMargin);
        make.top.equalTo(avatarImageView.mas_bottom).offset(22);
    }];
    
    UIView *nameView = [UIView addToView:self.view];
    nameView.backgroundColor = UIColor.tj_backgroundColor;
    [nameView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(nameLabel);
        make.right.inset(leftRightMargin);
        make.top.equalTo(nameLabel.mas_bottom).offset(10);
        make.height.offset(50);
    }];
    
    
}
 

- (void)didClickEditButton {
    
}

@end
